//create editor
function create_editor(info)
{
var demo = new FCKeditor( 'comments' ) ;
demo.BasePath = '../includes/editor/' ;
demo.Config['EnterMode'] = 'br';
demo.DefaultLanguage = "zh-cn";
demo.Width="600";
demo.Height="400";
demo.ToolbarSet="liujie";
demo.Value = info;
demo.Create();
}

//create accordion
function create_accordion(){
jQuery().ready(function(){
		// simple accordion
		jQuery('#menu_left').accordion({autoheight:true});
		jQuery('#list').accordion({
			autoheight: false
		});
	});
	}

//checkbox function
function CheckAll(form) {
var x=form.elements;
for (var i=0;i<x.length;i++)
{
var e = x[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked; 
}
}